package com.rimi.project.service.impl;

import com.rimi.project.bean.User;
import com.rimi.project.dao.UserDao;
import com.rimi.project.dao.impl.UserDaoImpl;
import com.rimi.project.service.UserService;

public class UserServiceImpl implements UserService{
	
	UserDao userDao = new UserDaoImpl();
	
	@Override
	public boolean login(String userName,String password) {
		
		User user = userDao.findUserByAccAndPassword(userName, password);
		
		if (null != user) {
			return true;
		} else {
			return false;		
		}
	}
	
}
